from enum import unique
from django.db import models

# Create your models here.
class Card(models.Model):
    card_name=models.CharField("会员卡名称",max_length=20,unique=True)
    card_price=models.DecimalField("会员卡价格",max_digits=5,decimal_places=2)
    duration=models.IntegerField("会员卡有效期")
    info=models.CharField("会员卡说明",max_length=100)
    create_time=models.DateTimeField("创建时间",auto_now_add=True)
    update_time=models.DateTimeField("更新时间",auto_now=True)
    
    class Meta:
        db_table="card"
        verbose_name="会员卡"
        verbose_name_plural="会员卡"
        ordering=["-id"]
